﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Syspetro.Public.Enums
{
    /// <summary>
    /// 产品种类-二级目录
    /// </summary>
    public enum ProductType
    {
        [Description("云算力")]
        CloudPower = 20001,
        [Description("满存算力")]
        FullStorage = 20002,
        [Description("封装独享矿机")]
        Encapsulation = 20003,
        [Description("联合矿机")]
        Cooperation = 20004
    }

    /// <summary>
    /// 挖矿状态
    /// </summary>
    public enum MiningStatus
    {
        [Description("准备中")]
        Default,
        [Description("挖矿中")]
        Mining,
        [Description("已停产")]
        StopProduction,
        [Description("已到期")]
        Expire
    }

    /// <summary>
    /// 优惠券类型
    /// </summary>
    public enum CouponType
    {
        [Description("满减")]
        FullReduction = 30001,
        [Description("百分比")]
        Percentage = 30002
    }
    /// <summary>
    /// 使用状态
    /// </summary>
    public enum CouponStatus
    {
        [Description("默认")]
        Default,
        [Description("已使用")]
        TakeEffect,
        [Description("已失效")]
        Invalid
    }
    /// <summary>
    /// 收益方式
    /// </summary>
    public enum YieldType
    {
        [Description("按算力收益")]
        Power = 10001,
        [Description("按收益值")]
        Output = 10002,
    }
    public enum EarningType
    {
        [Description("分享收益")]
        Share = 0,
        [Description("按算力收益")]
        Team = 1,
        [Description("按算力收益")]
        Power = 2
    }

    public enum OrderStatus
    {
        [Description("待付款")]
        PerPay = 1,
        [Description("已取消")]
        Cancel = 2,
        [Description("已支付")]
        PaySuccess = 3,
        [Description("已过期")]
        Expired = 4,
        [Description("已退款")]
        Refound = 6
    }
}
